package com.ruoyi.squadweb.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 交易数据对象 transactions
 *
 * @author ruoyi
 * @date 2024-03-17
 */
public class Transactions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** steamid */
    @Excel(name = "steamid")
    private String steamid;

    /** 组织标签 */
    @Excel(name = "组织标签")
    private String organizationTag;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private BigDecimal transactionAmount;

    /** 当前余额 */
    @Excel(name = "当前余额")
    private BigDecimal currentBalance;

    /** 类型，0=支出，1=收入 */
    @Excel(name = "类型，0=支出，1=收入")
    private Long type;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date transactionTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSteamid(String steamid)
    {
        this.steamid = steamid;
    }

    public String getSteamid()
    {
        return steamid;
    }
    public void setOrganizationTag(String organizationTag)
    {
        this.organizationTag = organizationTag;
    }

    public String getOrganizationTag()
    {
        return organizationTag;
    }
    public void setTransactionAmount(BigDecimal transactionAmount)
    {
        this.transactionAmount = transactionAmount;
    }

    public BigDecimal getTransactionAmount()
    {
        return transactionAmount;
    }
    public void setCurrentBalance(BigDecimal currentBalance)
    {
        this.currentBalance = currentBalance;
    }

    public BigDecimal getCurrentBalance()
    {
        return currentBalance;
    }
    public void setType(Long type)
    {
        this.type = type;
    }

    public Long getType()
    {
        return type;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }
    public void setTransactionTime(Date transactionTime)
    {
        this.transactionTime = transactionTime;
    }

    public Date getTransactionTime()
    {
        return transactionTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("steamid", getSteamid())
            .append("organizationTag", getOrganizationTag())
            .append("transactionAmount", getTransactionAmount())
            .append("currentBalance", getCurrentBalance())
            .append("type", getType())
            .append("note", getNote())
            .append("transactionTime", getTransactionTime())
            .toString();
    }
}
